﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class UI : MonoBehaviour {

    private Button reatartBtn;
	// Use this for initialization
	void Start () {
        reatartBtn = transform.Find("RestartBtn").GetComponent<Button>();
        reatartBtn.onClick.AddListener(OnRestartBtnClick);
	}

    void OnRestartBtnClick()
    {
        UnityEngine.SceneManagement.SceneManager.LoadScene(0);
    }
}
